package com.cennavi.bigdata.baotou.service.impl;


import com.alibaba.fastjson.JSONObject;
import com.cennavi.bigdata.baotou.service.ReportService;
import com.cennavi.bigdata.baotou.util.WordGeneratorUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *
 * @packageName: com.zhuxl.exportdoc.service.impl
 * @className:
 * @description:
 * @author: 2810010108@qq.com
 * @createTime: 2018/6/23 14:16 with idea 2018.1
 * </p>
 * version: V1.0.0
 */
@Service
public class ReportServiceImpl implements ReportService {

    @Override
    public String exportWord(JSONObject json) {


        //解析参数
        Map<String, String> datas = WordGeneratorUtils.parseToMap(json);

        //导出
        String word = WordGeneratorUtils.createDoc(datas);
        return word;
    }
}
